#include <assert.h>
#include <math.h>
#include <stdio.h>

main()
{
  float a = 1.0/10.0;
  float accum = 0;
  int i;
  for(i = 0; i < 100; i++) {
    accum += a;
  }

  printf("Value of accumulator: %.15lf\n", (double)accum);
  assert(fabs(accum - (double)10.0) < 1e-6);

  return 0;
}
